let pid = ''
Page({
  data:{},
  onLoad({id : id}) {
    pid = id
    this.getDetail(id)
  },
  async getDetail(id) {
    const res = await wx.http.get(`/room/${id}`)
    this.setData({...res.data})
  },
  editHouse() {
    wx.navigateTo({
      url: `/house_pkg/pages/form/index?id=${pid}`,
    })
  },
})
